home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Applications
/
Fixation 1.3
/
preffile.h
< prev
next >
Wrap
Text File
|
1996-04-10
|
1KB
|
49 lines
// preffile.h
enum {
kDummyDummyStrangeCompiler = -1, // insures we don't get unsigned arithmetic from this thing
// stuff
kPlayerNameLength = 64,
kShortcuts = 24,
kFics = 0,
kIcc
};
// Need to do this due to external file storage
#pragma options align=mac68k
typedef struct {
short versionNumber;
char name[kPlayerNameLength], password[kPlayerNameLength];
char serverAddress[256];
long port;
Rect textWindPos, gameWindPos1, gameWindPos2;
Boolean useSound, saidHi, smartClose, autoFlag, autoBug, autoFlip;
long numLogins;
RGBColor colWhite, colBlack;
Boolean trueColors;
short pieceSet;
short currentFont, currentSize;
Boolean adminColors, channelColors, smartText;
short serverType;
Boolean slowText, minimal;
short boardSize1, boardSize2;
Boolean timeseal, backgroundOnDrag, soundTells;
} prefStruct;
typedef struct {
Boolean jexiste;
char shortcut[kPlayerNameLength];
char name[kPlayerNameLength], password[kPlayerNameLength];
char serverAddress[kPlayerNameLength];
long port;
short serverType; // fics/icc
Boolean timeseal;
} Shortcut;
#pragma options align=reset
extern prefStruct gPrefs;
extern Shortcut *gShortcuts;
void DoSavePrefs(Ptr p, long length, Str255 preffilename);
long DoReadPrefs(Ptr p, long length, Str255 preffilename);